call "..\Tools\ExtractVersion.bat"
rd /S /Q SymTemp
md SymTemp
for /F %%a in ('type "StoreSymbolsList.txt"') do (
copy %%a SymTemp\*.*
if errorlevel 1 if not "%1"=="debug" @echo File is missing: %%a
if errorlevel 1 if not "%1"=="debug" goto :error
)

cd SymTemp
"c:\Program Files\Debugging Tools for Windows (x64)\symstore.exe" add /f . /s ..\SymServer /t ViewLinkDC /compress /v %VERSION_NUM%%BETA_STATE%%REVISION_NUM%
cd ..
rd /S /Q SymTemp
goto end

:error

:end